package com.employ.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.employ.admin.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<User> queryUserByName(String name);

    @Select("select * from User where username = #{username}")

    User findUserByName(String name);

}
